﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO;
using BLL;

namespace GUI
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        #region Khai báo
        protected string _token;
        protected KhachHangDTO _khDTO;
        protected NhanVienDTO _nvDTO;
        private KhachHangBLL _khBLL;
        private NhanVienBLL _nvBLL;
        #endregion

        #region Page_Load
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["NhanVien"] != null)
            {
                this._nvDTO = new NhanVienDTO();
                this._nvDTO = (NhanVienDTO)Session["NhanVien"];
                return;
            }

            if (Session["KhachHang"] != null)
            {
                this._khDTO = new KhachHangDTO();
                this._khDTO = (KhachHangDTO)Session["KhachHang"];
                return;
            }

        }
        #endregion

        #region LoginStatus1_LoggingOut
        //protected void LoginStatus1_LoggingOut(object sender, LoginCancelEventArgs e)
        //{
        //    if(Session["KhachHang"]!=null)
        //        Session["KhachHang"] = null;
        //    else if (Session["NhanVien"] != null)
        //        Session["NhanVien"] = null;
        //}
        #endregion

        #region ImageButtonDangNhapYahoo_Click
        protected void ImageButtonDangNhapYahoo_Click(object sender, ImageClickEventArgs e)
        {

        }
        #endregion

        #region LoginStatus1_LoggedOut
        //protected void LoginStatus1_LoggedOut(object sender, EventArgs e)
        //{

        //}
        #endregion

        #region ImageButtonDangNhapGoogle_Click
        protected void ImageButtonDangNhapGoogle_Click(object sender, ImageClickEventArgs e)
        {

        }
        #endregion
    }
}
